﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class TopThietKeWebsite1 : System.Web.UI.UserControl
    {
        public int idbox;
        public string name;
        public string idcat1;

        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectTableWhereID("tbl_Category", "Category_ID1", idbox.ToString());
            name = dt.Rows[0]["Category_Name"].ToString();

            rpt_sanphammoinhat.DataSource = dt;
            rpt_sanphammoinhat.DataBind();

            idcat1 = DAL.DCollector.DBCollector.Instance.StoredSelectTable("tbl_BoxCategory").Rows[0]["Category_ID1"].ToString();
        }
    }
}